package com.zhang.cloud.controller;


import lombok.Value;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.UUID;

@RestController
@Slf4j
public class ConsulController {

//    @Value("${server.port}")
//    private String servePort;

    @RequestMapping(value = "/pay/consul")
    public String paymentConsul()
    {
        return "springcloud with consul "+8006+"\t"+ UUID.randomUUID().toString();
    }
}
